<table align="center" width="800" style="">
    <tr>
        <th align="left" colspan="3">
        <div style="float:left; margin-right:20px;"><a href="./index.php?act=add">+ <strong>Add New Item</strong></a></div>
        <div style="float:left; margin-right:20px;"><a href="./index.php?act=update"><strong>Update Inventory</strong></a></div>
        <br /><br /></th>
      </tr>
  <tr>
    <th align="left">id</th>
    <th align="left">Name</th>
    <th align="left">Stock</th>
  </tr>
  <?php
  $result = mysql_query("SELECT * FROM `items`");
  while($row = mysql_fetch_assoc($result)){
	  echo '<tr>
		<td>'.$row['itemid'].'</td>
		<td><a href="./index.php?act=view&id='.$row['itemid'].'">'.$row['name'].'</a></td>
		<td>'.$row['stock'].'</td>
	  </tr>';
  }
  ?>  
</table>
